package com.ytrsoft.utils;


public final class Commands {

    private Commands() {
        throw new UnsupportedOperationException();
    }

    public static boolean isWindows() {
        String name = System.getProperty("os.name").toLowerCase();
        return name.contains("win");
    }

    public static String[] get() {
        if (isWindows()) {
            return new String[]{"cmd.exe"};
        }
        return new String[]{"/bin/bash", "--login"};
    }

}
